package org.btik.light.meta.event.cmd;

import org.btik.light.meta.base.LightImpl;
import org.btik.light.meta.base.Command;

import java.util.List;

/**
 * @author lustre
 * @version 1.0
 * @since 2021/5/15 12:37
 * Command的基本结构
 */
public class DefaultCmd extends LightImpl implements Command {

    protected String target;

    protected int opcode;

    protected List<?> params;

    public void setTarget(String target) {
        this.target = target;
    }

    public void setOpcode(int opcode) {
        this.opcode = opcode;
    }

    @Override
    public String getTarget() {
        return target;
    }

    @Override
    public int opCode() {
        return opcode;
    }


    @Override
    public List<?> getParams() {
        return params;
    }

    public void setParams(List<?> params) {
        this.params = params;
    }
}
